import { http } from '@/utils/http.js'

/**
 * 评价医生
 */
export const evaluateDoctorApi = (data) => {
	return http.post('/patient/order/evaluate', data)
}

/**
 * 列表
 */
export const patientHomeKnowledge = (data) => {
	return http.request({
		url: '/patient/home/knowledge',
		method: 'GET',
		params: data,
	})
}
/**
 * 推荐医生列表
 */
export const doctorListApi = (current = 1, pageSize = 5) => {
	return http.get('/home/page/doc', {
		params: {
			current,
			pageSize,
		},
	})
}
/**
 * 关注医生
 */
export const likeDoctorApi = (id, type = 'doc') => {
	return http.request({
		url: '/like',
		method: 'POST',
		data: {
			id,
			type,
		},
	})
}
